/*
 * @FilePath: \plugWeb\src\router\index.js
 * @Version: 2.0
 * @LastEditors: lhl
 * @LastEditTime: 2021-10-14 09:38:43
 * @Description:
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/Home.vue'),
    redirect: '/button',
    children: [
      {
        path: '/button',
        name: 'button',
        component: () => import('../views/components/Button.vue')
      },
      {
        path: '/rotationchart',
        name: 'rotationchart',
        component: () => import('../views/components/RotationChart.vue')
      },
      {
        path: '/other',
        name: 'other',
        component: () => import('../views/components/Other.vue')
      },
      {
        path: '/form',
        name: 'form',
        component: () => import('../views/components/Form.vue')
      },
      {
        path: '/test',
        name: 'test',
        component: () => import('../views/components/Test.vue')
      },
      {
        path: '/editor',
        name: 'editor',
        component: () => import('../views/components/Editor.vue')
      },
      {
        path: '/vueEditor',
        name: 'vueEditor',
        component: () => import('../views/components/Quill.vue')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
